package com.guys8.cemsbackend.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * (Nacid)表实体类
 *
 * @author breeze
 * @since 2022-08-24 16:11:31
 */
@Setter
@Getter
@ToString
@Data
@Accessors(chain = true)
public class Nacid extends Model<Nacid> {
        @TableId(value = "nacid_id",type = IdType.AUTO)
        private Integer nacidId;
        private Integer userId;
        private Date nacidTime;
        private String nacidPlace;
        private String nacidResult;
        @TableLogic
        private Integer isDelete;
        private Integer ext1;
        private String ext2;

        public Nacid(){}
        public Nacid(Integer userid,String nacidPlace,String nacidResult){
               setUserId(userid);
               setNacidTime(new Date());
               setNacidPlace(nacidPlace);
               setNacidResult(nacidResult);
               setIsDelete(0);
        }
}

